package cn.tedu.spring.example;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

/**
 * 1.当前类表示为Spring的组件;
 * 2.框架会为该类创建一个对象[底层原理是反射],放到IoC容器中;
 *
 *
 */
//@Component
//@Service
//@Controller
@Repository
public class User {
    public void doSome(){
        System.out.println("Hello World");
    }
}
